package com.qidian.buy.service;

import com.qidian.buy.entity.Customer;
import com.qidian.buy.util.pojo.LayuiTableDTO;
import com.qidian.buy.util.pojo.QDResult;

/**
 * @Author 郭浩
 */
public interface ICustomerService {
    QDResult save(Customer customer);
    QDResult edit(Customer customer);
    QDResult delete(Customer customer);
    QDResult<Customer> get(Long id);
    LayuiTableDTO<Customer> query(int page, int limit, Customer customer);
    QDResult reg(Customer customer);
    // 这里的loginName可以是手机号码或者用户名
    QDResult login(String loginName,String password);

    QDResult getCustomerByToken(String token);
}
